#encoding = utf-8
"""
读写Excel或csv格式文件
"""
import xlrd

# open excel
path = "./res/201x级计算机《xxx》成绩单.xls"
data = xlrd.open_workbook(path)
print(data.sheet_names())
table = data.sheets()[0]
print(table.nrows)
print(table.ncols)
print(table.row_values(0))
# for rn in range(table.nrows):
# 	print(table.row_values(rn))
cell_A1 = table.cell(0,0).value
print(cell_A1)